# Contributor: knuxify <knuxify@gmail.com>
# Maintainer: knuxify <knuxify@gmail.com>
pkgname=warp
pkgver=0.7.0
pkgrel=0
pkgdesc="Fast and secure file transfer"
url="https://apps.gnome.org/en/app/app.drey.Warp/"
# rust-ring
arch="all !ppc64le !s390x !riscv64"
license="GPL-3.0-or-later"
depends_doc="yelp"
makedepends="cargo
	desktop-file-utils
	gtk4.0-dev
	itstool
	libadwaita-dev
	meson
	rust
	"
subpackages="$pkgname-doc $pkgname-lang"
source="https://gitlab.gnome.org/World/warp/-/archive/v$pkgver/warp-v$pkgver.tar.gz"
builddir="$srcdir/warp-v$pkgver"
options="!check" # no tests


build() {
	abuild-meson \
		-Db_lto=true \
		. output
	meson compile -C output
}

check() {
	meson test --no-rebuild -v -C output
}

package() {
	DESTDIR="$pkgdir" meson install --no-rebuild -C output
}

sha512sums="
d386e8cfe88229997929f18e3b2c765bf14823741c70568a84d7c199f73690c82f0f9188be05305f3f667f1675a26125a0aacf3c2d3773efb297757c043ca6f0  warp-v0.7.0.tar.gz
"
